package 第二天

fun main(args: Array<String>) {
    val range = 1..10
    //for
    for (a in range){
//        println(a)
    }

    for ((index,a) in range.withIndex()) {
        println(index)
    }
}